package com.example.braden.answergame.common.im;

import com.example.braden.answergame.base.BaseResult;
import com.example.braden.answergame.modules.main.domain.GameOverEntity;
import com.example.braden.answergame.modules.main.domain.PropMessageEntity;
import com.example.braden.answergame.modules.main.domain.QuestionEntity;
import com.example.braden.answergame.modules.main.domain.UserPropInfo;
import com.example.braden.answergame.modules.main.domain.UserStatusEntity;

/**
 * Created by braden on 2018/3/12.
 */

public interface IMMessageListener {
    //收到下发题目消息
    void onReceiveMessage(QuestionEntity entity);

    //收到下发题目状态消息
    void onReceiveAnswer(UserStatusEntity entity);

    //收到下发道具使用消息
    void onReceiveProp(PropMessageEntity entity);

    //收到下发答题结束消息
    void onReceiveOver(GameOverEntity overEntity);

    //收到下发用户和道具信息
    void onReceiverUser(UserPropInfo userPropInfo);

    //网络断开连接，退出游戏
    void onNetwokrDis();
}
